using System;
using System.Collections;

namespace Slaks.DocumentSerialization.Document.Wordnet
{
	public class Synonym
	{
		private IList m_idList;
		private long m_selfId;
		private WordnetNode m_wordnetNode;
		public Synonym(long selfId,WordnetNode node)
		{
			m_selfId = selfId;
			m_idList = new ArrayList();
			m_wordnetNode = node;
		}

		public long GetSelfId() { return m_selfId ; }
		public bool IsSynonymExists(long id) { return m_wordnetNode.IsSynonymExists(id,this); }
		public bool IsIdExists(long id)
		{
			return m_idList.Contains(id);
		}
		public void AddSynonymId(long id)
		{
			if (this.IsIdExists(id) == false && this.IsSynonymExists(id) == false)
			m_idList.Add(id);
		}

		public IList SynonymIdList() { return m_idList; }

	}
}
